<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<title>智慧工匠</title>
<link rel="shortcut icon" href="${ctx.contextPath}/images/favicon.ico">
<link rel="stylesheet" href="${ctx.contextPath}/layui/css/layui.css">
<link rel="stylesheet"
	href="${ctx.contextPath}/layui/css/font-awesome.min.css">
<link rel="stylesheet" href="${ctx.contextPath}/css/nav/nav.css">
<link rel="stylesheet" href="${ctx.contextPath}/css/nav/iconfont.css">
<script src="${ctx.contextPath}/js/jquery-1.9.1.min.js"></script>
<script src="${ctx.contextPath}/layui/layui.all.js"></script>
<script src="${ctx.contextPath}/js/layer/layer.min.js"></script>
<script src="${ctx.contextPath}/js/common.js "></script>
<script type="text/javascript">
	var ctp = "${ctx.contextPath}";
	var userId = "${userId}";
</script>

<script type="text/javascript"
	src="${ctx.contextPath}/js/comet4j/comet4j.js"></script>
<script>
	/************************************comet4j开始********************************************************/

	//var count = 0;
	//window.onload = function() {
		// 建立连接，conn 即web.xml中 CometServlet的<url-pattern>
		//JS.Engine.start('${ctx.contextPath}/comet4jServlet');
		// 监听后台某个频道
		//JS.Engine.on({
			// 对应服务端 “频道1” 的值 msgCount
			//msgCount : function(msgCount) {
				/* alert(msgCount); */
			//},
			// 对应服务端 “频道2” 的值 msgData
			//msgData : function(msgData) {
				/* alert(JSON.stringify(msgData[0].msg)); */
				//$('#msg').html("");
				//setTimeout(function() {
					//$('#msg').html(msgData[0].msg);
				//}, 1000);

			//},
		//});
	//} 
	/*********************************comet4j结束***********************************************************/
</script>

</head>

<body>
	<!--header-->
	<div class="layui-layout layui-layout-admin">
		<div class="layui-header home-header">
			<div class="layui-main">
				<a class="logo" href="#">
					<img src="${ctx.contextPath}/images/home_logo.png" alt="">
					<span>智慧工匠管理系统</span> 
				</a>
				<div class="home-side-menu">
					<i class="fa fa-bars"></i>
				</div>
				<!-- <ul class="layui-nav left" lay-filter="home-nav-left">
					<li class="layui-nav-item"><a href="#">最新活动</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="#">选项1</a>
							</dd>
							<dd>
								<a href="#">选项2</a>
							</dd>
							<dd>
								<a href="#">选项3</a>
							</dd>
						</dl></li>
					<li class="layui-nav-item"><a href="#">大数据</a></li>
					<li class="layui-nav-item"><a href="#">社区</a></li>
				</ul> -->
				<p></p>
				<ul class="layui-nav right" lay-filter="home-nav-right">
					<!-- <li class="layui-nav-item">消息通知：<span id="msg"></span></li>
					<li class="layui-nav-item"><a href="#">社区</a></li> -->
					<li class="layui-nav-item" style="vertical-align: top;">
					<a href="#">
						<img src="./../images/user-header.jpg" style="height: 40px;width: 40px; border-radius: 50%;">
						<span style="margin: 0 5px;">${userName}</span>
						<span class="layui-nav-more"></span>
					</a>
						<dl class="layui-nav-child">
		
							<dd>
								<a href="#" onclick="updatePwd();">修改密码</a>
							</dd>
							<dd>
								<a href="#" onclick="loginout();">退出系统</a>
							</dd>
						</dl></li>
				</ul>
			</div>
		</div>
	</div>

	<!--side-->
	<div class="layui-layout-admin layui-side" id="bblay-side">
		<div class="layui-side-scroll">
			<!-- <div class="user-photo">
				<a class="img" href="#"> <img src="./../images/user-header.jpg"
					alt="">
				</a>
				<p>
					你好！<span>${userId}</span>，欢迎登录
				</p>

			</div> -->
			<ul style="margin-top:10px;" class="layui-nav layui-nav-tree" lay-filter="home-side" id="menu">
				<li class="layui-nav-item">
				<a href="#" onclick="goHome();">
				<i class="iconfont icon-shouyeshouye">
				</i><font>首页</font>
				</a>
				</li>

			</ul>
		</div>
	</div>
	
	<!-- tab -->
	<!-- <div class="admin-nav-card">
		<ul class="layui-tab-title">
			<li class="" >
				<i class="layui-this"></i>
				<cite onclick="refleshTab('sy');">首页</cite>
			</li>
			<li class="layui-this">
				<i class="layui-icon"></i>
				<cite>Tab组件</cite>
				<i class="layui-icon layui-tab-close">&#x1006;</i>
			</li>
			<li>
				<i class="fa fa-navicon"></i>
				<cite>Navbar组件</cite>
				<i class="layui-icon layui-tab-close">&#x1006;</i>
			</li>
		</ul>
	</div> -->
	<!--main iframe-->
	<div class="layui-body home-body" id="bblay-body">
		<iframe id="right" class="main-iframe" src="" frameborder="0"></iframe>
	</div>

	<!-- right fixed -->
	<!-- QQ提供的免费在线资讯功能以及在线加群功能 -->
	<!-- <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=781259686&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:781259686:52" alt="在线资讯" title="在线资讯"/></a>
								<a target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=da2fc2cfe527f58180ada27986158f2bee9e82aa129f390e844374ea607f37df"><img border="0" src="//pub.idqqimg.com/wpa/images/group.png" alt="测试" title="测试"></a> -->

	<!-- <div class="right-fixed">
		http://shang.qq.com/v3/index.html QQ推广官网 
		<a class="rf-item" title="QQ资讯" target="_blank"
			href="http://wpa.qq.com/msgrd?v=3&uin=781259686&site=qq&menu=yes">
			更换QQ账号即可 <i class="iconfont icon-qq"></i>
		</a> <a class="rf-item" title="加入QQ群" target="_blank"
			href="//shang.qq.com/wpa/qunwpa?idkey=da2fc2cfe527f58180ada27986158f2bee9e82aa129f390e844374ea607f37df">
			<i class="iconfont icon-qqqun"></i>
		</a>
	</div> -->
</body>
<script src="${ctx.contextPath}/js/baseVersion/home.js"></script>

</html>